<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html;charset=UTF-8" %> 
<html>
<head>
<link rel="stylesheet" href="/WSI/resources/css/login.css">
<title>WSI Logowanie</title>

</head>
<body onload='document.f.j_username.focus();'>

	<c:if test="${not empty error}">
		<div class="errorblock">
			Niepowodzenie.<br /> Przyczyna :
			${result}			
		</div>
	</c:if>	
	
	<c:if test="${not empty success}">
		<div class="successblok">			
			${result}			
		</div>
		
		<script type="text/javascript">			
			setInterval("location.href='/WSI/'",3000);
		</script>
		
	</c:if>	
	
<div class="form1">
	<form name='f' action="<c:url value='j_spring_security_check' />"
		method='POST'>
		
		
		<br><br>
		<div class="row"><label class="col1">Użytkownik:&nbsp;&nbsp;</label>
		<span class="col2"><input name="j_username" class="input" type="text"size="20" value='' /></span>
		</div>

		<div class="row"><label class="col1">Hasło:&nbsp;&nbsp;</label>
		<span class="col2"><input name="j_password" class="input" type="password" size="20" value='' /></span>
		</div>
		
		<div align="center" class="submit">
		    <button type="input" class="buttons">Logowanie</button>
		</div>

	</form>
<div>
</body>
</html>
